package org.malred.io;

import java.io.InputStream;

public class Resources {
    // 根据配置文件的路径,将配置文件加载成字节流,存入内存
    public static InputStream getResourceAsStream(String path) {
        InputStream resourceAsStream =
                Resources.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;
    }
}
